@import url(https://fonts.googleapis.com/css?family=Open+Sans:600);
.frame {
  position: absolute;
  width: 400px;
  height: 400px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: "Open Sans", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.profile {
  position: relative;
  float: left;
  width: 194px;
  height: 194px;
  margin: 4px 0 0 4px;
  cursor: pointer;
}
.profile .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: 0;
  transition: all 0.6s ease-in-out;
}
.profile .plus {
  position: absolute;
  width: 50px;
  height: 50px;
  inset: 0;
  margin: auto;
  background: #ec6565;
  border-radius: 50%;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease-in-out;
  opacity: 0;
  transform: scale(2);
  pointer-events: none;
}
.profile .plus::before {
  position: absolute;
  content: "";
  width: 14px;
  height: 2px;
  background: #fff;
  inset: 0;
  margin: auto;
}
.profile .plus::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 14px;
  background: #fff;
  inset: 0;
  margin: auto;
}
.profile:hover .overlay {
  opacity: 0.4;
}
.profile:hover .plus {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

.detail {
  display: none;
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  font-size: 0;
}
.detail.active {
  pointer-events: all;
}
.detail.active .header {
  transform: translate3d(0, 0, 0);
  transition: all 0.6s ease-in-out;
}
.detail.active .image {
  transform: translate3d(0, 0, 0);
  transition: all 0.6s ease-in-out 0.3s;
}
.detail.active .info {
  transform: translate3d(0, 0, 0);
  transition: all 0.6s ease-in-out;
}
.detail.active .close {
  transform: rotate(45deg) translate3d(0, 0, 0);
  transition: background 0.3s ease-in-out, transform 0.6s ease-in-out 0.6s;
}
.detail .close {
  position: absolute;
  z-index: 2;
  height: 50px;
  width: 50px;
  background-color: #ec6565;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  cursor: pointer;
  transform: rotate(45deg) translate3d(-105%, -105%, 0);
  transition: background 0.3s ease-in-out, transform 0.5s ease-in-out;
}
.detail .close::before {
  position: absolute;
  inset: 0;
  margin: auto;
  content: "";
  width: 14px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.detail .close::after {
  position: absolute;
  content: "";
  height: 14px;
  width: 2px;
  background-color: #fff;
  inset: 0;
  margin: auto;
  transition: all 0.3s ease-in-out;
}
.detail .close:hover {
  background-color: #fff;
}
.detail .close:hover::after, .detail .close:hover::before {
  background-color: #ec6565;
}
.detail .header {
  transform: translate3d(0, -105%, 0);
  transition: all 0.6s ease-in 0.4s;
}
.detail .image {
  box-sizing: border-box;
  position: absolute;
  z-index: 1;
  top: 130px;
  left: 150px;
  height: 100px;
  width: 100px;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 4px 6px 15px 0 rgba(0, 0, 0, 0.2);
  transform: translate3d(0, -250px, 0);
  transition: all 0.6s ease-in 0.2s;
}
.detail .image img {
  width: 100%;
  height: auto;
}
.detail .info {
  box-sizing: border-box;
  background: #ec6565;
  height: 220px;
  padding-top: 67px;
  transform: translate3d(0, 105%, 0);
  transition: all 0.6s ease-in 0.4s;
}
.detail .info .name {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.detail .info .action {
  margin-top: 35px;
  text-align: center;
}
.detail .info .action .btn {
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  width: 45px;
  height: 45px;
  border: 1px solid #fff;
  margin: 0 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.detail .info .action .btn:hover {
  background: #fff;
  color: #ec6565;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.2);
}
.detail .info .action .fa {
  position: absolute;
  font-size: 19px;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  line-height: 20px;
  padding-top: 12px;
}
.detail .info .action .fa-phone {
  font-size: 22px;
}
.detail .info .action .fa-comment {
  font-size: 20px;
  padding-top: 10px;
  left: 2px;
}
.detail .info .action .fa-heart {
  top: 1px;
  left: 2px;
}

#detail-1 {
  display: block;
}